exports.commentData=class {
    constructor({id,time,reply,content,indent,parentId}){
        this.id = id
        this.time = time
        this.reply = reply
        this.content = content
        this.indent = indent
        this.parentId = parentId


    }
}

exports.createComment=function (inputData){
    return new commentData({
        id:inputData.id,
        time:inputData.time,
        reply:inputData.reply,
        content:inputData.content,
        indent:inputData.indent,
        parentId:inputData.parentId,

    })
}
